package com.thb.pay.api.agent.fallback;

import com.thb.pay.api.agent.AgentAgentpayPassageServiceApi;
import com.thb.pay.api.agent.vo.req.AgentAgentpayPassageReq;
import com.thb.pay.api.agent.vo.resp.AgentAgentpayPassageVo;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class AgentAgentpayPassageServiceApiFallbackFactory implements FallbackFactory<AgentAgentpayPassageServiceApi> {


    @Override
    public AgentAgentpayPassageServiceApi create(Throwable throwable) {
        return new AgentAgentpayPassageServiceApi() {

            @Override
            public List<AgentAgentpayPassageVo> findListByAgentId(Long agentId) {
                return null;
            }

            @Override
            public AgentAgentpayPassageVo getByAgentIdAndPassageId(Long agentId, Long agentpayPassageId) {
                return null;
            }

            @Override
            public void addOrUpdate(AgentAgentpayPassageReq agentAgentpayPassageReq) {

            }
        };
    }
}